package cn.iocoder.yudao.module.iot.controller.admin.room.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - IoT 房间 Response VO")
@Data
@ExcelIgnoreUnannotated
public class IotRoomRespVO {

    @Schema(description = "房间编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long id;

    @Schema(description = "房间名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "客厅")
    @ExcelProperty("房间名称")
    private String name;

    @Schema(description = "房间类型", example = "living_room")
    @ExcelProperty("房间类型")
    private String type;

    @Schema(description = "父级房间ID", example = "1")
    @ExcelProperty("父级房间ID")
    private Long parentId;

    @Schema(description = "所属用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("所属用户ID")
    private Long userId;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
